package com.longcai.controller.property;


import com.longcai.bean.ApiResult;
import com.longcai.bean.PageHelper;
import com.longcai.entity.property.ClyjUserPropertyRecord;
import com.longcai.page.table.PageTableResponse;
import com.longcai.service.property.ClyjUserPropertyRecordService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

/**
 * <p>
 * 用户资产收益记录表 前端控制器
 * </p>
 *
 * @author kh
 * @since 2019-04-29
 */
@Controller
@RequestMapping("/clyjUserPropertyRecord")
public class ClyjUserPropertyRecordController {

    private Logger logger = LoggerFactory.getLogger(getClass());

    @Autowired
    private ClyjUserPropertyRecordService clyjUserPropertyRecordService;

    @RequestMapping("/getUserPropertyRecords")
    @ResponseBody
    public PageTableResponse getUserPropertyRecords(ClyjUserPropertyRecord userPropertyRecord, PageHelper pageHelper){

        return clyjUserPropertyRecordService.getUserPropertyRecords(userPropertyRecord,pageHelper);
    }


}

